<script setup lang="ts">
import Dialog from './components/Dialog.vue';
</script>

<template>
  <Dialog>
    <template v-slot:head>
      <h2>警告</h2>
    </template>
    <template #default>
      <p>你确认要退出吗？</p>
    </template>
    <template #footer>
      <button>确认</button>
      <button>取消</button>
    </template>
  </Dialog>
</template>

<style scoped>
body {
  background-color: #b3b3b3;
}

button {
  margin-right: 10px;
  background-color: darkcyan;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
}
</style>